class PartConfiguration < ActiveRecord::Base
  belongs_to :cart
  belongs_to :part
  belongs_to :parts_group
  belongs_to :used_type
  belongs_to :original_type
  
  def name
    if part_id.nil?
      part_name
    else
      part.name
    end
  end
end
